﻿using B.S.Material.ErrorCode;
using MediatR;

namespace B.S.Material.Wirth.Api.Applications.Command.StrippingDetailsCommand
{
    public class UpdateStrippingDetailsCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 单据编号
        /// </summary>

        public int StrippingDetailsId { get; set; }

        /// <summary>
        /// 产产品名称，非空字符串
        /// </summary>
        public string productName { get; set; }
        /// <summary>
        /// 产品编号，字符串类型
        /// </summary>
        public string productcode { get; set; }
        /// <summary>
        /// 规格型号，字符串类型
        /// </summary>
        public string specification { get; set; }
        /// <summary>
        /// 单位，字符串类型
        /// </summary>
        public string unit { get; set; }
        /// <summary>
        ///本次退料数量，数值类型，非空
        /// </summary>
        public decimal returnquantity { get; set; }
        /// <summary>
        /// 可退料数量，数值类型
        /// </summary>
        public decimal availablequantity { get; set; }
        /// <summary>
        /// 退料原因，字符串类型
        /// </summary>
        public string reason { get; set; }
        /// <summary>
        /// 批号，字符串类型
        /// </summary>
        public string batchNumber { get; set; }
        /// <summary>
        /// 生产日期，日期类型
        /// </summary>
        public DateTime productionDate { get; set; }
        /// <summary>
        ///有效日期，日期类型
        /// </summary>
        public DateTime expirationDate { get; set; }
        /// <summary>
        /// 出仓库，字符串类型
        /// </summary>
        public string warehouse { get; set; }
        /// <summary>
        /// 关联领料/补料主题，字符串类型
        /// </summary>
        public string relatedMaterialsSubject { get; set; }
        /// <summary>
        ///关联项目，字符串类型
        /// </summary>
        public string relatedProject { get; set; }
        /// <summary>
        /// 外键约束，关联到主表的单据编号
        /// </summary>
        public int StrippingId { get; set; }
        /// <summary>
        ///  删除标识
        /// </summary>
        public bool IsDel { get; set; }
    }
}
